package com.hospital.demo.service.dingyuxin;

import com.hospital.demo.model.dingyuxin.Payment;
import com.hospital.demo.model.dingyuxin.Paymentdetail;

import java.util.List;

public interface UserPaymentSer {
    /**
     * 1.缴费处生成订单和订单详情
     */
    int buyDrugs(Payment payment, Paymentdetail paymentdetail);

    /**
     * 2.根据医保减免相关费用
     */
    int discount(int peopleaccount,int totalmoney);

    /**
     * 3.患者退货
     */
    int fundBack(int paymentid);

    /**
     * 显示历史账单
     */
    List<Payment> paymentList(int peopleaccount);

    /**
     * 显示医保余额
     */
    int balance(int peopleaccount);
}
